<?php
date_default_timezone_set('UTC');
$isLive=false;

if($isLive){
define("HOST","allyfolio.db.11296362.hostedresource.com");
define("DBNAME","allyfolio");
define("USERNAME","allyfolio"); //allyfolio
define("PASSWORD","Allyfolio12#");//Allyfolio12#
}
else{
define("HOST","localhost"); //allyfolio.db.11296362.hostedresource.com
define("DBNAME","allyfolio");
define("USERNAME","root"); //allyfolio
define("PASSWORD","");//Allyfolio12#
}

define("TYPE","mysql");
define("PORTNUMBER",3306);

//define("HOST","localhost");
//define("DBNAME","allyfolio");
//define("USERNAME","root");
//define("PASSWORD","");
//
define("PAGELIMIT",20);

$access_matrix=array();
$access_matrix["Staff"]['Home'][0]="dashboard.php";
$access_matrix["Staff"]['Home']['Change Password']="change_pwd.php";
$access_matrix["Staff"]['Home']['Profile']="profile.php";
$access_matrix["Staff"]['Home']['Edit Profile']="edit_profile.php";
$access_matrix["Staff"]['Home']['Static Pages']="pagemanager.php";
$access_matrix["Staff"]['Home']['Edit Static Page']="addedit_page.php";
$access_matrix["Staff"]['Home']['Sponcers']="sponcers.php";
$access_matrix["Staff"]['Home']['Add Sponcer']="addedit_sponcer.php";
$access_matrix["Staff"]['Home']['No Access']="no_access_level.php";
$access_matrix["Staff"]['Home']['Email Templates']="emailtemplates.php";
$access_matrix["Staff"]['Home']['Add Email Template']="addedit_emailtemplate.php";

$access_matrix["Staff"]['Allyfolio Users'][0]="users.php";
$access_matrix["Staff"]['Allyfolio Users']['Users List']="users.php";

$access_matrix["Staff"]['Games & Career'][0]="categories.php";
$access_matrix["Staff"]['Games & Career']['Categories']="categories.php";
$access_matrix["Staff"]['Games & Career']['Add Edit Category']="addedit_category.php";
$access_matrix["Staff"]['Games & Career']['Games and Apps']="gamesapps.php";
$access_matrix["Staff"]['Games & Career']['Add Edit Games/Apps']="addedit_app.php";
$access_matrix["Staff"]['Games & Career']['Game/App Ratings']="addedit_avgrating.php";
$access_matrix["Staff"]['Games & Career']['Game/App Total Picks']="addedit_totalpics.php";
$access_matrix["Staff"]['Games & Career']['Job Post']="careerjobs.php";
$access_matrix["Staff"]['Games & Career']['Add Edit Job Post']="addedit_jobpost.php";
$access_matrix["Staff"]['Games & Career']['Post Replies']="addedit_postreplies.php";

$access_matrix["Staff"]['Post Activities'][0]="posts_abused.php";
$access_matrix["Staff"]['Post Activities']['Report Abused']="posts_abused.php";

$access_matrix["Staff"]['Entertainment & Techno Post'][0]="entertainments.php";
$access_matrix["Staff"]['Entertainment & Techno Post']['Entertainments']="entertainments.php";
$access_matrix["Staff"]['Entertainment & Techno Post']['Add Edit Entertainment']="addedit_entertainment.php";
$access_matrix["Staff"]['Entertainment & Techno Post']['Techno Categories']="technocategories.php";
$access_matrix["Staff"]['Entertainment & Techno Post']['Add Edit Techno Category']="addedit_technocategory.php";
$access_matrix["Staff"]['Entertainment & Techno Post']['Non Verified Techno Path Posts']="posts.php";
$access_matrix["Staff"]['Entertainment & Techno Post']['Verified TechnoPath Posts']="verifiedposts.php";
$access_matrix["Staff"]['Entertainment & Techno Post']['View Techno Post']="view_post.php";
$access_matrix["Staff"]['Entertainment & Techno Post']['Entertainment Total Picks']="addedit_ent_totalpics.php";
$access_matrix["Staff"]['Entertainment & Techno Post']['Entertainment Average Ratings']="addedit_ent_avgrating.php";
$access_matrix["Staff"]['Entertainment & Techno Post']['Techno Post Total Picks']="addedit_post_pics.php";
$access_matrix["Staff"]['Entertainment & Techno Post']['Techno Post Total Shares']="addedit_post_shares.php";
$access_matrix["Staff"]['Entertainment & Techno Post']['Techno Post Comments']="addedit_post_comments.php";

$access_matrix["Staff"]['Blog Pages'][0]="blog_pages.php";
$access_matrix["Staff"]['Blog Pages']["Blogs"]="view_blogs.php";
$access_matrix["Staff"]['Blog Pages']["View Blog"]="view_blog.php";

$access_matrix["Staff"]['Company Pages'][0]="company_types.php";
$access_matrix["Staff"]['Company Pages']['Add Edit Company Type']="addedit_company_type.php";
$access_matrix["Staff"]['Company Pages']['Company Pages']="company_pages.php";
$access_matrix["Staff"]['Company Pages']['View Company Page']="addedit_company_pages.php";
$access_matrix["Staff"]['Company Pages']['View Company Page Members']="view_page_members.php";
$access_matrix["Staff"]['Company Pages']['View Company Page Media']="view_page_media.php";

//Admin access permissions
$access_matrix["Admin"]['Home'][0]="dashboard.php";
$access_matrix["Admin"]['Home']['Change Password']="change_pwd.php";
$access_matrix["Admin"]['Home']['Profile']="profile.php";
$access_matrix["Admin"]['Home']['Edit Profile']="edit_profile.php";
$access_matrix["Admin"]['Home']['Static Pages']="pagemanager.php";
$access_matrix["Admin"]['Home']['Edit Static Page']="addedit_page.php";
$access_matrix["Admin"]['Home']['No Access']="no_access_level.php";
$access_matrix["Admin"]['Home']['Staffs']="staffs.php";
$access_matrix["Admin"]['Home']['Add Staff']="addedit_staff.php";
$access_matrix["Admin"]['Home']['Sponcers']="sponcers.php";
$access_matrix["Admin"]['Home']['Add Sponcer']="addedit_sponcer.php";
$access_matrix["Admin"]['Home']['Email Templates']="emailtemplates.php";
$access_matrix["Admin"]['Home']['Add Email Template']="addedit_emailtemplate.php";

$access_matrix["Admin"]['Allyfolio Users'][0]="users.php";
$access_matrix["Admin"]['Allyfolio Users']['Users List']="users.php";

$access_matrix["Admin"]['Games & Career'][0]="categories.php";
$access_matrix["Admin"]['Games & Career']['Categories']="categories.php";
$access_matrix["Admin"]['Games & Career']['Add Edit Category']="addedit_category.php";
$access_matrix["Admin"]['Games & Career']['Games and Apps']="gamesapps.php";
$access_matrix["Admin"]['Games & Career']['Add Edit Games/Apps']="addedit_app.php";
$access_matrix["Admin"]['Games & Career']['Game/App Ratings']="addedit_avgrating.php";
$access_matrix["Admin"]['Games & Career']['Game/App Total Picks']="addedit_totalpics.php";
$access_matrix["Admin"]['Games & Career']['Job Post']="careerjobs.php";
$access_matrix["Admin"]['Games & Career']['Add Edit Job Post']="addedit_jobpost.php";
$access_matrix["Admin"]['Games & Career']['Post Replies']="addedit_postreplies.php";

$access_matrix["Admin"]['Entertainment & Techno Post'][0]="entertainments.php";
$access_matrix["Admin"]['Entertainment & Techno Post']['Entertainments']="entertainments.php";
$access_matrix["Admin"]['Entertainment & Techno Post']['Add Edit Entertainment']="addedit_entertainment.php";
$access_matrix["Admin"]['Entertainment & Techno Post']['Techno Categories']="technocategories.php";
$access_matrix["Admin"]['Entertainment & Techno Post']['Add Edit Techno Category']="addedit_technocategory.php";
$access_matrix["Admin"]['Entertainment & Techno Post']['Non Verified Techno Path Posts']="posts.php";
$access_matrix["Admin"]['Entertainment & Techno Post']['Verified TechnoPath Posts']="verifiedposts.php";
$access_matrix["Admin"]['Entertainment & Techno Post']['View Techno Post']="view_post.php";
$access_matrix["Admin"]['Entertainment & Techno Post']['Entertainment Total Picks']="addedit_ent_totalpics.php";
$access_matrix["Admin"]['Entertainment & Techno Post']['Entertainment Average Ratings']="addedit_ent_avgrating.php";
$access_matrix["Admin"]['Entertainment & Techno Post']['Techno Post Total Picks']="addedit_post_pics.php";
$access_matrix["Admin"]['Entertainment & Techno Post']['Techno Post Total Shares']="addedit_post_shares.php";
$access_matrix["Admin"]['Entertainment & Techno Post']['Techno Post Comments']="addedit_post_comments.php";

$access_matrix["Admin"]['Blog Pages'][0]="blog_pages.php";
$access_matrix["Admin"]['Blog Pages']["Blogs"]="view_blogs.php";
$access_matrix["Admin"]['Blog Pages']["View Blog"]="view_blog.php";

$access_matrix["Admin"]['Company Pages'][0]="company_types.php";
$access_matrix["Admin"]['Company Pages']['Add Edit Company Type']="addedit_company_type.php";
$access_matrix["Admin"]['Company Pages']['Company Pages']="company_pages.php";
$access_matrix["Admin"]['Company Pages']['View Company Page']="addedit_company_pages.php";
$access_matrix["Admin"]['Company Pages']['View Company Page Members']="view_page_members.php";
$access_matrix["Admin"]['Company Pages']['View Company Page Media']="view_page_media.php";


$access_matrix["Admin"]['Events'][0]="events.php";

$access_matrix["Admin"]['Backup'][0]="backupdb.php";

$access_matrix["Admin"]['Post Activities'][0]="posts_abused.php";
$access_matrix["Admin"]['Post Activities']['Report Abused']="posts_abused.php";

?>